QT      += core gui network sql qml quick concurrent  widgets  xml webenginecore webenginewidgets webview
greaterThan(QT_MAJOR_VERSION,5):QT += core5compat
CONFIG  += c++2a plugin

DESTDIR = ../../../dist/plugins
TARGET  = sailmipim_plugin_richeditor

TEMPLATE = lib
DEFINES += _HAS_DEPRECATED_RESULT_OF

CONFIG += file_copies
res.files = $$PWD/resources
set.files = $$PWD/settings
res.path = $$DESTDIR/../
set.path = $$DESTDIR/../
COPIES += res set

INCLUDEPATH += ../../interfaces                 \
                ../../util/sailmipim_util_core         \
               ../../util/sailmipim_util_tags          \
               ../../util/sailmipim_util_xpc           \
               ../../util/sailmipim_util_gui           \
               ../../util/sailmipim_util_models        \
               ../../util/sailmipim_util_sll           \
               ../../xsd                        \

LIBS += -L../../../dist          \
        -lsailmipim_util_core           \
        -lsailmipim_util_tags           \
        -lsailmipim_util_xpc            \
        -lsailmipim_util_gui            \
        -lsailmipim_util_models         \
        -lsailmipim_util_sll            \
        -lsailmipim_xsd

FORMS += \
    src/finddialog.ui \
    src/hyperlinkdialog.ui \
    src/imagecollectiondialog.ui \
    src/imagedialog.ui \
    src/inserttabledialog.ui \
    src/richeditorwidget.ui

DISTFILES += \
    resources/share/global_icons/plugins/default/richeditor.svg \
    settings/sailmipim_richeditor_settings.xml

TRANSLATIONS += \
    resources/locales/sailmipim_richeditor_en.ts \
    src/sailmipim_richeditor_en.ts \
    src/sailmipim_richeditor_es.ts \
    src/sailmipim_richeditor_ru_RU.ts \
    src/sailmipim_richeditor_uk_UA.ts

HEADERS += \
    src/finddialog.h \
    src/htmlhighlighter.h \
    src/hyperlinkdialog.h \
    src/imagecollectiondialog.h \
    src/imagedialog.h \
    src/imageinfosmodel.h \
    src/inserttabledialog.h \
    src/richeditor.h \
    src/richeditorwidget.h \
    src/xmlsettingsmanager.h

SOURCES += \
    src/finddialog.cpp \
    src/htmlhighlighter.cpp \
    src/hyperlinkdialog.cpp \
    src/imagecollectiondialog.cpp \
    src/imagedialog.cpp \
    src/imageinfosmodel.cpp \
    src/inserttabledialog.cpp \
    src/richeditor.cpp \
    src/richeditorwidget.cpp



